<!DOCTYPE html>
<html>
<#include "../constant.ftl">
<head>
<meta charset="utf-8" />
<title>蜡笔同步 - 已接来电</title>
<link rel="stylesheet" type="text/css" href="/css/reset.css" />
<link rel="stylesheet" type="text/css" href="/css/common.css"/>
<link rel="stylesheet" type="text/css" href="/css/crc.css" />
<link rel="stylesheet" type="text/css" href="/css/sms_dialog.css"/>
<script src="/js/util/jquery.min.js?v=1.3.1.10" type="text/javascript"></script>
<script type="text/javascript">
function toPage(pageIndex){
	$("#currentPage").val(pageIndex);
	$("#form1").submit();
}
$(document).ready(function(){
	$(".chk-select-all").click(function(){
		var _self = $(this);
		$("[name='msgchk']").each(function(){
			if(_self.attr("checked")){
				$(this).attr("checked",true);
			}else{
				$(this).attr("checked",false);
			}
		});
	});
		
	$(".btn-4").click(function(){
		var ids = "";
		var idArray = new Array();
		$("[name='msgchk']").each(function(){
			if($(this).attr("checked")){
				ids += "id=" + $(this).val() + "&";
				idArray.push($(this).val());
			}
		});
		$("#form1").attr("action","/log/delete");
		$("#form1").submit();
	});
});
</script>
</head>

<body>
<div id="content">
<form id="form1" action="/log/list">
	<div class="main" id="main-container">
		<div id="crc-container" class="common-container">
		    <div class="crc-title">
		        <div class="lla" id="crc_type"><#if type==CALLLOG_TYE_ALL>全部<#elseif type==CALLLOG_TYPE_OUT>已拨<#elseif type==CALLLOG_TYPE_IN>已接<#elseif type==CALLLOG_TYPE_UN>未接</#if>来电(${vo.count})</div>
		        
		         <input type="hidden" id="currentPage" value="1" name="currentPage">
			    <div class="l_lha"  id="simpleAdvanced">
				    <div class="sms-seimg icon_sms-search" onclick="toPage(1)" id="simple_search_btn"></div>
				    
				   
				    <input id="simple-input" type="text" tips="您可以通过姓名、电话号码进行搜索" class="sms-se" name="queryString" value="" />
				    
			    </div>			
			    
		    </div>
       		<div id="H-crc-search-title">符合“<span></span>”的搜索结果（<span></span>）</div>
			<div class="crc-content">
				<div id="crc_op_top">
					<div class="crc-page">
						<div class="page">
							<a title="首页" class="page-first-enable" href="javascript:toPage(1)"></a>
							<#if vo.currentPage gt 1><a title="上页" class="page-prev-enable" href="javascript:goto(${vo.currentPage-1})"></a></#if>
							<#if vo.currentPage lt vo.totalPage><a title="下页" class="page-next-enable" href="javascript:goto(${vo.currentPage+1})"></a></#if>
							<a title="末页" class="page-last-enable" href="${vo.totalPage}"></a>
							<select>
							<#assign t = vo.totalPage>
							<#list 1..t as x>
								<option value="1">${x}/${vo.totalPage}</option>
							</#list>
							</select>
						</div>
					</div>
					<div class="l_ljm">
						<input type="checkbox" class="chk-select-all" /><span>全选</span>
					</div>
					<a class="btn btn-4 crc-remove-btn" href="javascript:void(0);"><span>删除</span></a>
					<div class="sms-select">
						<span class="at">@</span>
					</div>
				</div>
			<div id="crc-item-container">
			<#list vo.logs as log>
				<div class="crc-item" id="">
					<div class="crc-item-content">
						<table width="100%" cellspacing="0" cellpadding="0">
							<tr>
								<td width="20">
									<input type="checkbox" name="msgchk" value="${log.id}"
										style="*margin-left: -3px;" />
								</td>
								<td width="21">
									<div class="icon-nav-crc icon16 nav-crc-${log.type}"></div>
								</td>
								<td width="281"><a class="link-default crc-pnum-a" href="javascript:void(0);">${log.name}</a>
								</td>
								<td width="100" align="right" class="time">
									<span class="crc-dur-span-all"><#if log.type==CALLLOG_TYPE_UN>未接<#else>${log.duration}秒</#if></span>
								</td>
								<td width="105" class="time" style="color:#999;padding-right:4px;">
									${log.formatDate?string("yyyy-MM-dd HH:mm")}
								</td>
							</tr>
						</table>
					</div>
					<div class="crc-item-opcontainer">
						<div class="information-tele">
							<span class="crc-owner" data-imei="865061000939286">@</span><span class='icon-sms-url crc-owner-icon' data-imei="865061000939286"></span>
						</div>
						<div class="crc-item-op" style="">
							<a href="javascript:void(0);" class="op-btn-1"
								onclick="NS_crc.removeOneCrc('27858091');">
								<b class="icon_trash"></b><span>删除</span></a>
						</div>
					</div>
					<div class="crc-sess-container" id="H-crc-sess-container-27858091"></div>
				</div>
				</#list>
			</div>

			<div id="crc_op_bottom">
				<div class="crc-page"></div>
				<div class="l_ljm">
					<input type="checkbox" class="chk-select-all" /><span>全选</span>
				</div>
				<a class="btn btn-4 crc-remove-btn" href="javascript:;"><span>删除</span></a>
				<div class="sms-select">
					<span class="at">@</span>
				</div>
			</div>
		</div>
	</div>
</div>
	    
<div class="sub">
	<div class="nav-container">
		<div class="nav">
			<div class="nav-border-top icon-nav-border-radius"></div>
			<div class="nav-border-radius-topleft icon-nav-border-radius"></div>
			<div class="nav-border-radius-topright icon-nav-border-radius"></div>
			<div class="nav-border-radius-bottomleft icon-nav-border-radius"></div>
			<div class="nav-border-radius-bottomright icon-nav-border-radius"></div>
			<div class="nav-item">
				<b class="icon-nav-sms icon16 nav-sms-"></b>
				<a id="nav_sms_" href="/sms/list">全部短信</a>
			</div>
			<div class="nav-item">
				<b class="icon-nav-sms icon16 nav-sms-1"></b>
				<a id="nav_sms_1" href="/sms/list?type=1">收件箱</a>
			</div>
			<div class="nav-item nav-item-last">
				<b class="icon-nav-sms icon16 nav-sms-2"></b>
				<a id="nav_sms_2" href="/sms/list?type=2">已发短信</a>
			</div>
		</div>
	
		<div class="nav">
			<div class="nav-border-top icon-nav-border-radius"></div>
			<div class="nav-border-radius-topleft icon-nav-border-radius"></div>
			<div class="nav-border-radius-topright icon-nav-border-radius"></div>
			<div class="nav-border-radius-bottomleft icon-nav-border-radius"></div>
			<div class="nav-border-radius-bottomright icon-nav-border-radius"></div>
			<div class="nav-item">
				<b class="icon-nav-crc icon16 nav-crc-"></b>
				<a id="nav_crc_" href="/log/list">全部通话</a>
			</div>
			<div class="nav-item">
				<b class="icon-nav-crc icon16 nav-crc-1"></b>
				<a id="nav_crc_1" href="/log/list?type=1">已接来电</a>
			</div>
			<div class="nav-item">
				<b class="icon-nav-crc icon16 nav-crc-2"></b>
				<a id="nav_crc_2" href="/log/list?type=2">已拨电话</a>
			</div>
			<div class="nav-item">
				<b class="icon-nav-crc icon16 nav-crc-3"></b>
				<a id="nav_crc_3" href="/log/list?type=3">未接来电</a>
			</div>
		</div>
	</div>
	<div class="festival-sms-logo">
		<embed src="swf/flowerOther.swf?v=0.05324481505002521" quality="high" type="application/x-shockwave-flash" width="100%" height="100%" swliveconnect="true" allowscriptaccess="always" wmode="transparent"></embed>
	</div>
</div>
</form>
</div>
</body>
</html>
